#include "MultiMedia.h"

MultiMedia::MultiMedia()
{
}

MultiMedia::MultiMedia(int year, string name)
{
	this->year = year;
	this->name = name;
}

MultiMedia::~MultiMedia()
{
}

ostream &operator<<(ostream &s, const MultiMedia &media)
{
	return s << media.name << "; " << media.year << endl;
}

istream &operator>>(istream &s, MultiMedia &media)
{
	char c;
	return s >> media.year >> c >> media.name;
}

